package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.InsureDao;
import io.renren.modules.generator.entity.InsureEntity;
import io.renren.modules.generator.service.InsureService;



@Service("insureService")
public class InsureServiceImpl implements InsureService {
	@Autowired
	private InsureDao insureDao;
	
	@Override
	public InsureEntity queryObject(Integer id){
		return insureDao.queryObject(id);
	}
	
	@Override
	public List<InsureEntity> queryList(Map<String, Object> map){
		return insureDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return insureDao.queryTotal(map);
	}
	
	@Override
	public void save(InsureEntity insure){
		insureDao.save(insure);
	}
	
	@Override
	public void update(InsureEntity insure){
		insureDao.update(insure);
	}
	
	@Override
	public void delete(Integer id){
		insureDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		insureDao.deleteBatch(ids);
	}
	
}
